﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Model;
using Controller;

namespace Facade
{
    public class RGMFacade
    {
        public string Save(RGM RGMs)
        {
            RGMController cont = new RGMController();
            return cont.Save(RGMs);
        }

        public string Delete(RGM RGMs)
        {
            RGMController cont = new RGMController();
            return cont.Delete(RGMs);
        }

        public string BeforeDelete(RGM RGMs)
        {
            RGMController cont = new RGMController();
            return cont.BeforeDelete(RGMs);
        }

        public IList<RGM> GetAll(string sSearch, int PageNumber, int DataLength, string SortCol, string SortDirection, out int TotalData, int BusinessGroupID)
        {
            IList<RGM> RGMs = new List<RGM>();
            RGMController cont = new RGMController();
            RGMs = cont.GetAll(sSearch, PageNumber, DataLength, SortCol, SortDirection, out TotalData, BusinessGroupID);
            return RGMs;
        }

        public RGM GetRGMByID(int ID)
        {
            RGM RGMs = new RGM();
            RGMController cont = new RGMController();
            RGMs = cont.GetRGMByID(ID);
            return RGMs;
        }
    }
}